package net.esj.basic.core.business.web.interceptor;

import net.esj.basic.core.view.tools.ActionContext;
import net.esj.basic.pojo.op.Operator;
import net.esj.basic.service.provider.UserRuleProvider;

import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

/**
 * operator提供者
 * @author Administrator
 *
 */
public abstract class AbstractOperatorInterceptor extends AbstractInterceptor {
	
	private String operatorType;
	
	protected Operator getOperator(){
		Operator operator = UserRuleProvider.getSessionUser(ActionContext.getSession(), operatorType);
		return operator;
	}

	public void setOperatorType(String operatorType) {
		this.operatorType = operatorType;
	}
}
